﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Atomic.FriendLinks.Entities
{
    /// <summary>
    /// 友情链接实体
    /// </summary>
    public class LinkEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public virtual int ID { set; get; }

        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("链接名称")]
        [Required]
        [StringLength(50)]
        public virtual string Name { set; get; }

        /// <summary>
        /// 链接地址
        /// </summary>
        [DisplayName("链接地址")]
        [Required]
        [StringLength(255)]
        public virtual string Url { set; get; }

        /// <summary>
        /// 图片地址
        /// </summary>
        [DisplayName("图片地址")]
        [StringLength(255)]
        public virtual string ImageUrl { set; get; }

        /// <summary>
        /// 排列顺序
        /// </summary>
        [DisplayName("排列顺序")]
        public virtual int Sort { set; get; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [DisplayName("是否启用")]
        public virtual bool Enabled { set; get; }
    }
}
